/*
 * @Author: your name
 * @Date: 2021-12-07 17:10:42
 * @LastEditTime: 2021-12-07 17:28:13
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \cet4_6rs\src\modal\mysql.js
 */
// jdbc:mysql://localhost/studentmis?user=root&password=123456&characterEncoding=utf-8&useSSL=false
var mysql_user = {
    host:'localhost',//主机地址（默认为：localhost）
    user:'123',//用户名
    password:'123',//密码
    database:'project1'//数据库名
};
var mysql = require('mysql')
var connection = mysql.createConnection(mysql_user,{multipleStatements: true});//创建一个连接
//multipleStatements: true  此功能打开可同时使用多条  查询语句

module.exports = {
    connection //将此模块给暴露出去
};
